Crate ac_primitives

source ·

Re-exports§

Modules§

  • The config used by the API.
  • Primitives for substrate extrinsics.
  • A number type that can be serialized both as a number or a string that encodes a number in a string.
  • RPC parameters, originally belonging to jsonrpsee: https://github.com/paritytech/jsonrpsee It is copied & pasted here to avoid std dependencies.
  • Simple sr25519 (Schnorr-Ristretto) API.
  • Re-defintion of substrate primitives. Needed because substrate pallets compile to wasm in no_std.

Structs§

  • An opaque 32-byte cryptographic identifier.
  • Blake2-256 Hash implementation.
  • Abstraction over a substrate block.
  • Hex-serialized shim for Vec<u8>.
  • Generic header digest.
  • Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
  • Abstraction over a block header for a substrate chain.
  • Collection of justifications for a given block, multiple justifications may be provided by different consensus engines for the same block.
  • Simple blob to hold an extrinsic without committing to its format and ensure it is serialized correctly.
  • Runtime version. This should not be thought of as classic Semver (major/minor/tiny). This triplet have different semantics and mis-interpretation could cause problems. In particular: bug fixes should result in an increment of spec_version and possibly authoring_version, absolutely not impl_version since they change the semantics of the runtime.
  • Abstraction over a substrate block and justification.
  • Storage change set
  • Storage data associated to a StorageKey.
  • Storage key.

Enums§

  • Digest item that is able to encode/decode ‘system’ digest items and provide opaque access to other items.
  • A multi-format address wrapper for on-chain accounts.
  • Signature verify that can work with any known signature types.

Traits§

  • Something which fulfills the abstract idea of a Substrate block. It has types for Extrinsic pieces of information as well as a Header.
  • Abstraction around hashing
  • Something which fulfills the abstract idea of a Substrate header. It has types for a Number, a Hash and a Hashing. It provides access to an extrinsics_root, state_root and parent_hash, as well as a digest and a block number.

Type Aliases§